package lab04.test02;

import static java.lang.Thread.*;

public class myThread extends Thread {
     long m = 0;
   public myThread(String str,long m){
        super(str);
       this.m = m;
   }

    @Override
    public void run() {
        while (true) {
            int x = 0;
            try {
                x++;Thread.sleep(m);

            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(toString());

        }
    }
}
